package atm;
import javax.swing.*;
import java.awt.*;


public class SavePanel   extends JPanel {
    private ImageIcon sure = new ImageIcon("images/buttonSure.jpg");
    private JLabel saveMoney = new JLabel("存款金额：");
    private JTextField moneyField = new JTextField();
    private JButton sureBtn=new JButton(sure);
    private Font font = new Font("黑体",Font.BOLD,20);

    public SavePanel(){
        this.setLayout(null);
        this.add(sureBtn);
        this.add(saveMoney);
        this.add(moneyField);
        saveMoney.setBounds(300,200,120,50);
        sureBtn.setBounds(400,260,140,50);
        moneyField.setBounds(400,200,140,50);
        saveMoney.setFont(font);




        this.setOpaque(false);
    }

}
